var seaConfig=(function(debug){
    var config={
        online:{
            paths:{
                "public":"public/dest",
                "static":"static/dest/js"
            }
        },
        debug:{
            paths:{
                "public":"public/src",
                "static":"static/src/js"
            }
        }
    }
    config=config[typeof debug=="undefined"?"debug":debug?"debug":"online"];
    config.preload=["public/mgt-common/index"];
    config.debug=debug;
    config.base=rootPath;
    return config;
})(mgtDebug);
function loadCss(path){
    var debug=typeof mgtDebug=="undefined"?true:mgtDebug;
    if(debug){
        document.write("<link rel='stylesheet/less' href='"+rootPath+"/static/src/css/"+path+".less' />");
        document.write("<script src='"+rootPath+"public/src/mgt-less/less.js'></script>");
    }else{
        document.write("<link rel='stylesheet' href='"+rootPath+"/static/dest/css/"+path+".css' />");
    }
}